<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">
			<div class="grid-title no-border">
				<h4>Управление <span class="semi-bold">брендами</span> и <span class="semi-bold">моделями</span></h4>
			</div>	
			<div class="grid-body no-border">
				<?php
				/* @var $this BrandController */
				/* @var $model Brand */


				$this->breadcrumbs = array(
					'Brands' => array('index'),
					'Управление',
				);
				?>

				<?php
				$this->widget('bootstrap.widgets.TbGridView', array(
					'id' => 'brand-grid',
					'dataProvider' => $model->search(),
					'filter' => $model,
					'htmlOptions'=>array(
						'class'=>'table-bordered table-hover',
					),
					'columns' => array(
						'pageId',						
						array(
							'name' => 'pageType',
							'header' => 'Тип',
							'filter' => array('brand' => 'Бренд', 'model' => 'Модель'),
							'value' => '($data->pageType=="brand")?("Бренд"):("Модель")'
						),
						'pageTitle',
						//'pageParent',
						'pageUrl',
						//'pageContentShort',
						/*
						  'pageContentFull',
						  'pageImages',
						  'pageActive',
						  'pageAuthor',
						  'pageSort',
						  'pageAction',
						  'pageItemId',
						 */
						array(
							'class' => 'bootstrap.widgets.TbButtonColumn',
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>